package com.recycle.system.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.recycle.common.annotation.Excel;
import com.recycle.common.core.domain.BaseEntity;

/**
 * 再生资源对象 waste_resource
 *
 * @author recycle
 * @date 2023-03-11
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("waste_resource")
public class WasteResource extends BaseEntity
{

    private static final long serialVersionUID = 1L;

    /** 资源id */
    @Excel(name = "资源编号")
    @TableId(type = IdType.AUTO)
    private Long resourceId;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String img;
    /** 资源类型编号 */
    @Excel(name = "资源类型编号")
    private Long resourceTypeId;

    /** 资源类型*/
    @Excel(name = "资源类型")
    private String resourceType;

    /** 关联的订单id */
    @Excel(name = "关联的订单id")
    private Long orderId;

    /** 拥有者id */
    @Excel(name = "拥有者id")
    private Long ownerId;

    /** 资源名称 */
    @Excel(name = "资源名称")
    private String name;

    /** 资源回收价格,单位元/千克 */
    @Excel(name = "资源回收价格,单位元/千克")

    private BigDecimal price;
    /** 重量,单位千克 */
    @Excel(name = "重量,单位千克")
    private BigDecimal weight;
    /** 总价 */
    @Excel(name = "总价")
    private BigDecimal totalPrice;

    /** 资源打包要求 */
    @Excel(name = "资源打包要求")
    private String packageRequirements;

    /** 回收时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "回收时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date collectTime;

    /** 是否回收(0=未回收,1=已回收) */
    @Excel(name = "是否回收", readConverterExp = "0=未回收,1=已回收")
    private Long isCollect;

    /** 是否被锁定(0=未锁定,1=已锁定) */
    @Excel(name = "是否回收", readConverterExp = "0=未锁定,1=已锁定")
    private Long isLock;


}
